package com.kelaite.procurement.exception;

public  class BaseRuntimeException extends RuntimeException {

	private static final long serialVersionUID = -3442372591466628990L;

	private int errorCode;
	private Object extraData;
	
	public BaseRuntimeException(int code, String message) {
		this(code, message,null);
	}

	public BaseRuntimeException( int code,String message, Object extraData) {
		super(message);
		this.errorCode=code;
		this.extraData=extraData;
	}

	public Object getExtraData() {
		return extraData;
	}

	public void setExtraData(Object extraData) {
		this.extraData = extraData;
	}

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}
